Skip to content

fix(Spanner): ensure precommit token is set for ILB transactions - #9406

Merged
cy-yun merged 1 commit into
mainfrom
spanner-fix-transaction-mutation
Jul 30, 2026
Merged

fix(Spanner): ensure precommit token is set for ILB transactions#9406
cy-yun merged 1 commit into
mainfrom
spanner-fix-transaction-mutation

Conversation

@bshaffer

Copy link
Copy Markdown
Contributor

Fixes #9331

Corrects the return flow in Operation::transaction() which previously returned the newly created transaction early before setting the precommitToken retrieved from the beginTransaction response.

Additionally, updates Transaction::commit() to copy the precommitToken from the newly initiated transaction object to the current transaction instance when a transaction is started inline.

@bshaffer
bshaffer requested a review from a team as a code owner July 28, 2026 18:42
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Jul 28, 2026
@bshaffer bshaffer added next release PRs to be included in the next release and removed api: spanner Issues related to the Spanner API. labels Jul 28, 2026
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Jul 29, 2026

@cy-yun cy-yun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cy-yun
cy-yun merged commit 7aa8b07 into main Jul 30, 2026
41 checks passed
@cy-yun
cy-yun deleted the spanner-fix-transaction-mutation branch July 30, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. next release PRs to be included in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Spanner] Wrapping mutations in transaction causes commits to run twice

2 participants